<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="?attr/main_background"
    android:orientation="vertical"
    tools:context=".view.Activities.ParkingActivity">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        <ProgressBar
            android:id="@+id/loading"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:indeterminateTint="?attr/purple"
            android:visibility="visible"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent" />

        <LinearLayout
            android:id="@+id/linearLayout6"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical"
            tools:context=".view.Activities.ParkingActivity">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal"
                android:padding="@dimen/_10sdp">

                <ImageButton
                    android:id="@+id/ib_back"
                    android:layout_width="@dimen/_18sdp"
                    android:layout_height="@dimen/_18sdp"
                    android:layout_gravity="center"
                    android:layout_marginStart="@dimen/_10sdp"
                    android:background="@drawable/icon_arrow_left" />

                <TextView
                    android:id="@+id/tv_parking_name"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:fontFamily="@font/inter_medium"
                    android:gravity="start|center"
                    android:paddingStart="@dimen/_20sdp"
                    android:text="ТЦ Тест"
                    android:textColor="?attr/main_text_color"
                    android:textSize="@dimen/_19sdp" />
            </LinearLayout>

            <LinearLayout
                android:id="@+id/Timer"
                android:layout_width="match_parent"
                android:layout_height="@dimen/_30sdp"
                android:layout_marginHorizontal="@dimen/_20sdp"
                android:layout_marginBottom="@dimen/_3sdp"
                android:background="@drawable/background_timer"
                android:orientation="horizontal"
                android:visibility="invisible"
                tools:visibility="visible">

                <TextView
                    android:id="@+id/tvTimerPlace"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginStart="@dimen/_10sdp"
                    android:fontFamily="@font/inter_semibold"
                    android:text="Место - B1"
                    android:textColor="?attr/main_text_color"
                    android:textSize="@dimen/_12ssp" />

                <TextView
                    android:id="@+id/tvTimer"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginStart="@dimen/_5sdp"
                    android:layout_marginEnd="@dimen/_10sdp"
                    android:fontFamily="@font/inter_semibold"
                    android:gravity="end"
                    android:text="3:23"
                    android:textColor="?attr/main_text_color"
                    android:textSize="@dimen/_13ssp" />
            </LinearLayout>

            <View
                android:layout_width="match_parent"
                android:layout_height="@dimen/_30sdp" />

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal">

                <LinearLayout
                    android:id="@+id/rightSide"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:orientation="vertical">

                    <com.example.autopia.view.customview.PlaceView
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:background="@drawable/place_stop_right_top" />

                    <com.example.autopia.view.customview.PlaceView
                        android:id="@+id/A1"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:background="@drawable/place_background_empty_right_side"
                        android:gravity="bottom|right"
                        android:text="A1"
                        android:textColor="#9B9B9B"
                        app:fontFamily="@font/inter_bold" />

                    <com.example.autopia.view.customview.PlaceView
                        android:id="@+id/A2"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:text="A2"
                        android:background="@drawable/place_background_empty_right_side"
                        android:gravity="bottom|right"
                        android:textColor="#9B9B9B"
                        app:fontFamily="@font/inter_bold" />

                    <com.example.autopia.view.customview.PlaceView
                        android:id="@+id/A3"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:background="@drawable/place_background_empty_right_side"
                        android:gravity="bottom|right"
                        android:text="A3"
                        android:textColor="#9B9B9B"
                        app:fontFamily="@font/inter_bold" />

                    <com.example.autopia.view.customview.PlaceView
                        android:id="@+id/A4"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:text="A4"
                        android:background="@drawable/place_background_empty_right_side"
                        android:gravity="bottom|right"
                        android:textColor="#9B9B9B"
                        app:fontFamily="@font/inter_bold" />

                    <com.example.autopia.view.customview.PlaceView
                        android:id="@+id/A5"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:background="@drawable/place_background_empty_right_side"
                        android:gravity="bottom|right"
                        android:text="A5"
                        android:textColor="#9B9B9B"
                        app:fontFamily="@font/inter_bold" />

                    <com.example.autopia.view.customview.PlaceView
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:background="@drawable/place_stop_right_bot" />

                </LinearLayout>

                <View
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_weight="1" />

                <View
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_weight="1" />

                <LinearLayout
                    android:id="@+id/leftSide"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:gravity="right"
                    android:orientation="vertical">

                    <com.example.autopia.view.customview.PlaceView
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:background="@drawable/place_stop_left_top" />

                    <com.example.autopia.view.customview.PlaceView
                        android:id="@+id/B1"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:background="@drawable/place_background_empty_left_side"
                        android:gravity="bottom"
                        android:text="B1"
                        android:textColor="#9B9B9B"
                        app:fontFamily="@font/inter_bold" />

                    <com.example.autopia.view.customview.PlaceView
                        android:id="@+id/B2"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:background="@drawable/place_background_empty_left_side"
                        android:gravity="bottom"
                        android:text="B2"
                        android:textColor="#9B9B9B"
                        app:fontFamily="@font/inter_bold" />

                    <com.example.autopia.view.customview.PlaceView
                        android:id="@+id/B3"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:background="@drawable/place_background_empty_left_side"
                        android:gravity="bottom"
                        android:text="B3"
                        android:textColor="#9B9B9B"
                        app:fontFamily="@font/inter_bold" />

                    <com.example.autopia.view.customview.PlaceView
                        android:id="@+id/B4"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:background="@drawable/place_background_empty_left_side"
                        android:gravity="bottom"
                        android:text="B4"
                        android:textColor="#9B9B9B"
                        app:fontFamily="@font/inter_bold" />

                    <com.example.autopia.view.customview.PlaceView
                        android:id="@+id/B5"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:background="@drawable/place_background_empty_left_side"
                        android:gravity="bottom"
                        android:text="B5"
                        android:textColor="#9B9B9B"
                        app:fontFamily="@font/inter_bold" />

                    <com.example.autopia.view.customview.PlaceView
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:background="@drawable/place_stop_left_bot" />
                </LinearLayout>
            </LinearLayout>

            <View
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:layout_weight="1" />
        </LinearLayout>
    </androidx.constraintlayout.widget.ConstraintLayout>

    <FrameLayout
        android:id="@+id/sheet"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/background_edittext_search"
        android:visibility="gone"
        app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        tools:visibility="visible">

        <ImageView
            android:layout_width="@dimen/_30sdp"
            android:layout_height="wrap_content"
            android:layout_gravity="center|top"
            android:layout_marginTop="@dimen/_8sdp"
            android:background="@drawable/icon_minimize"
            android:scaleType="fitXY" />

        <androidx.constraintlayout.widget.ConstraintLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="vertical"
                android:paddingHorizontal="@dimen/_10sdp"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="parent">

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/_10sdp"
                    android:orientation="horizontal">

                    <TextView
                        android:id="@+id/tvPlace"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginStart="@dimen/_14sdp"
                        android:fontFamily="@font/inter_bold"
                        android:text="Место - М15"
                        android:textColor="?attr/main_text_color"
                        android:textSize="@dimen/_15sdp" />

                    <View
                        android:layout_width="match_parent"
                        android:layout_height="1dp"
                        android:layout_weight="1" />

                    <ImageButton
                        android:id="@+id/btClose"
                        android:layout_width="@dimen/_20sdp"
                        android:layout_height="@dimen/_20sdp"
                        android:layout_gravity="center"
                        android:background="@drawable/icon_close"
                        android:visibility="gone" />
                </LinearLayout>

                <TextView
                    android:id="@+id/tvNamePark"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginStart="@dimen/_14sdp"
                    android:fontFamily="@font/inter"
                    android:text="Тц “Авангард”"
                    android:textColor="?attr/title_EditText_text_color"
                    android:textSize="@dimen/_11ssp" />

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginStart="@dimen/_14sdp"
                    android:layout_marginBottom="@dimen/_3sdp"
                    android:orientation="horizontal">

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:fontFamily="@font/inter"
                        android:text="Адрес:"
                        android:textColor="?attr/title_EditText_text_color"
                        android:textSize="@dimen/_12ssp" />

                    <TextView
                        android:id="@+id/tvAddress"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginStart="@dimen/_5sdp"
                        android:fontFamily="@font/inter_semibold"
                        android:text="Романовский переулок, д45"
                        android:textSize="@dimen/_12ssp" />
                </LinearLayout>

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginStart="@dimen/_14sdp"
                    android:layout_marginBottom="@dimen/_3sdp"
                    android:orientation="horizontal">

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="center"
                        android:fontFamily="@font/inter_semibold"
                        android:text="Статус:"
                        android:textColor="?attr/main_text_color"
                        android:textSize="@dimen/_11ssp" />

                    <ImageView
                        android:layout_width="wrap_content"
                        android:layout_height="@dimen/_24sdp"
                        android:layout_marginStart="@dimen/_10sdp"
                        android:src="@drawable/background_status" />
                </LinearLayout>

                <LinearLayout
                    android:id="@+id/labelCar"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginStart="@dimen/_14sdp"
                    android:layout_marginBottom="@dimen/_3sdp"
                    android:orientation="horizontal">

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:fontFamily="@font/inter_semibold"
                        android:text="Ваш автомобиль"
                        android:textColor="?attr/title_EditText_text_color"
                        android:textSize="@dimen/_11ssp" />

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:fontFamily="@font/inter_semibold"
                        android:text="*"
                        android:textColor="?attr/red_dot"
                        android:textSize="@dimen/_12ssp" />
                </LinearLayout>

                <FrameLayout
                    android:id="@+id/flChangerCar"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content">
                    <TextView
                        android:id="@+id/tvCar"
                        android:layout_width="match_parent"
                        android:layout_height="@dimen/_40sdp"
                        android:background="@drawable/edit_text_form"
                        android:fontFamily="@font/inter_medium"
                        android:gravity="start|center"
                        android:text="hundai solaris - y777yy 777"
                        android:paddingHorizontal="@dimen/_14sdp"
                        android:paddingVertical="@dimen/_5sdp"
                        android:textColor="?attr/EditText_text_color"
                        android:textSize="@dimen/_12sdp"/>

                    <ImageView
                        android:layout_gravity="end|center"
                        android:contentDescription="@null"
                        android:layout_marginEnd="@dimen/_17sdp"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:src="@drawable/icon_arrow_down"
                        />
                </FrameLayout>
                <LinearLayout
                    android:id="@+id/Buttons"
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/_50sdp"
                    android:layout_marginHorizontal="@dimen/_14sdp"
                    android:layout_marginTop="@dimen/_20sdp"
                    android:orientation="horizontal">

                    <androidx.cardview.widget.CardView
                        android:layout_width="match_parent"
                        android:layout_height="@dimen/_36sdp"
                        android:layout_gravity="center|top"
                        android:layout_weight="1"
                        android:background="@android:color/transparent"
                        android:outlineSpotShadowColor="@color/purple"
                        app:cardCornerRadius="15dp">

                        <androidx.appcompat.widget.AppCompatButton
                            android:id="@+id/btBlock"
                            android:layout_width="match_parent"
                            android:layout_height="match_parent"
                            android:background="@drawable/background_button_ripple"
                            android:text="Забронировать"
                            android:textAllCaps="false"
                            android:textColor="@color/white"
                            app:cornerRadius="@dimen/_15sdp" />
                    </androidx.cardview.widget.CardView>

                    <View
                        android:layout_width="@dimen/_10sdp"
                        android:layout_height="1dp" />

                    <androidx.cardview.widget.CardView
                        android:layout_width="match_parent"
                        android:layout_height="@dimen/_36sdp"
                        android:layout_gravity="center|top"
                        android:layout_weight="1"
                        android:background="@android:color/transparent"
                        app:cardCornerRadius="15dp">

                        <androidx.appcompat.widget.AppCompatButton
                            android:id="@+id/btOther"
                            android:layout_width="match_parent"
                            android:layout_height="match_parent"
                            android:background="@drawable/background_button_other"
                            android:textAllCaps="false"
                            android:textColor="@color/white"
                            app:cornerRadius="@dimen/_15sdp" />
                    </androidx.cardview.widget.CardView>
                </LinearLayout>
            </LinearLayout>
        </androidx.constraintlayout.widget.ConstraintLayout>

    </FrameLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>